package mn.idax.exchange.otc.task;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.dangdang.elasticjob.lite.annotation.ElasticSimpleJob;
import mn.idax.exchange.otc.service.OTCAdsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author: jack_huang
 * @Date: 2019/10/16 18:08
 */
@ElasticSimpleJob(cron = "0 0 0/1 * * ?")
@Component
public class AdProportionJob implements SimpleJob {

    @Autowired
    private OTCAdsService otcAdsService;
    @Override
    public void execute(ShardingContext shardingContext) {
        otcAdsService.getUserProportion();
    }

}
